def check_auth(func):
    def is_auth(*args, **kwargs):
        print('验证权限....')
        func(*args, **kwargs)

    return is_auth


@check_auth
def enter_background(login_id, pwd):
    print(login_id, pwd)
    print('进入后台系统......')


@check_auth
def delete_order(order_id):
    print('删除%d订单...' % order_id)


enter_background('admin', 'admin123')
delete_order(1424325464264624)
